<?php

namespace app\common\model\shopro;
use app\admin\model\shopro\goods\Goods;
use think\Model;
class ShopRestockModel extends Model
{
    protected $name = 'shopro_shop_restock';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;

    public function goods(){
        return $this->hasOne(Goods::class,'id','goods_id');
    }
}
